FROM anapsix/alpine-java:8_server-jre_unlimited

RUN mkdir -p /usr/local/forest-right

RUN mkdir -p /usr/local/forest-right-file

RUN mkdir -p /usr/local/forest-right-exe

WORKDIR /usr/local/forest-right

ADD ./target/forest-right.jar ./forest-right.jar

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

EXPOSE 18848

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "forest-right.jar"]

CMD ["--spring.profiles.active=100"]
